package cn.well.cloud.modular.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 课程通知记录
 * </p>
 *
 * @author jiawei
 * @since 2020-06-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("biz_course_notice_log")
@ApiModel(value="NoticeLog对象", description="课程通知记录")
public class NoticeLog extends Model<NoticeLog> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "课程通知id")
    @TableId(value = "notice_log_id", type = IdType.ID_WORKER)
    private Long noticeLogId;

    @ApiModelProperty(value = "课程id")
    @TableField("course_id")
    private Long courseId;

    @ApiModelProperty(value = "用户id")
    @TableField("user_info_id")
    private Long userInfoId;

    @ApiModelProperty(value = "所属微信")
    @TableField("wx_type")
    private String wxType;

    @ApiModelProperty(value = "模板id")
    @TableField("template_id")
    private String templateId;

    @ApiModelProperty(value = "消息id")
    @TableField("msg_id")
    private String msgId;

    @ApiModelProperty(value = "创建者")
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;


    @Override
    protected Serializable pkVal() {
        return this.noticeLogId;
    }

}
